﻿		public static {ClassName}Data[] GetAll()	//DataAccessClassGetAllMethod.tpl
        {
		    {ClassName}Data[] result = null;
			SqlConnector connector = new SqlConnector();
			using(DataTable dt = connector.GetDaTaTable("Select " + String.Join(",", CONST_COLUMN_NAMES) + " from [{TableName}]"))
			{
				result = new {ClassName}Data[dt.Rows.Count];
				for(int i = 0; i < dt.Rows.Count; i++)
					result[i] = CreateFromDataRow(dt.Rows[i]);
			}
		    return result;
        }